package com.lam.mall.entity;

import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lam.common.base.domain.BaseEntity;
import com.lam.common.validate.group.Add;

/**
 * 规格管理对象 mall_prod_specs
 * 
 * @author admin
 * @date 2023-04-21
 */
@TableName("mall_prod_specs")
public class ProdSpecs implements BaseEntity{

    /** 主键 */
    @Null(groups = Add.class, message="id必须为空")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    /** 规格名称 */
    @NotBlank(message = "规格名称不能为空")
    @Size(max = 50, message = "规格名称长度不能超过50个字符")
    private String specsName;

    /** 店铺id */
    private String shopId;

    /** 属性值 */
    @TableField(exist=false)
    @NotEmpty(message="规格属性值不能为空")
    private List<ProdSpecsValue> prodSpecsValues;
    
    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    } 

    public void setSpecsName(String specsName) {
        this.specsName = specsName;
    }

    public String getSpecsName() {
        return specsName;
    }    
    
    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getShopId() {
        return shopId;
    }

	public List<ProdSpecsValue> getProdSpecsValues() {
		return prodSpecsValues;
	}

	public void setProdSpecsValues(List<ProdSpecsValue> prodSpecsValues) {
		this.prodSpecsValues = prodSpecsValues;
	}    
    

}
